import React from 'react'

import Item from './Item'

import './style.scss'

class CommentList extends React.Component{
    constructor(props, context){
        super(props, context)
    }
    render() {
        const data = this.props.data
        return (
            <div className="comment-box">
                <h2>用户点评</h2>
                {
                    data.map((item, index) => {
                        return(
                            <Item key={index} data={item}></Item>
                        )
                    })
                }
            </div>
        )
    }
    componentDidMount() {
        
    }

}

export default CommentList